﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Usercontrols
{

    public partial class Persondata : System.Web.UI.UserControl
    {
        public string FirstName { 
            get{return uiFirstName.Text;}
            set{uiFirstName.Text = value;}
        }
        public string LastName
        {
            get{return uiLastName.Text;}
            set{uiLastName.Text = value;}
        }
        public string Address
        {
            get{return uiAddress.Text;}
            set{uiAddress.Text = value;}
        }
        public string Phone
        {
            get{ return uiPhone.Text;}
            set{uiPhone.Text = value;}
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            /*if (!Page.IsPostBack)
            {
                Table tblCtrl = new Table();
                TableRow tblRow = new TableRow();
                
                TableCell cell = new TableCell();
                cell.Controls.Add(new LiteralControl("Dette er en tablecell"));

                tblRow.Controls.Add(cell);
                tblCtrl.Controls.Add(tblRow);

                this.Controls.Add(tblCtrl);
            }
            else
            {
                
                
            }*/

        }
    }
}